function generate_png(size)
command = 'qrcode -o IMGNAME -s SIZE -8 -l L < data ';
command = strrep(command, 'IMGNAME', 'tmp.png');
command = strrep(command,'SIZE', num2str(size));
system(command);

